package com.hb.trade.server.project.order.service.impl;

import cn.hutool.http.HttpRequest;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hb.core.pojo.enums.InvoiceTypeEnum;
import com.hb.core.pojo.project.order.dto.InvoicePdfDTO;
import com.hb.core.pojo.project.order.dto.InvoiceSubmitInfoDTO;
import com.hb.core.pojo.project.order.dto.InvoicingResultDTO;
import com.hb.core.pojo.project.order.entity.Invoice;
import com.hb.core.pojo.project.order.mapper.InvoiceMapper;
import com.hb.trade.server.project.config.InvoiceConfig;
import com.hb.trade.server.project.order.service.InvoiceService;
import org.fzzn.core.util.IdUtil;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 发票信息 服务实现类
 * </p>
 *
 * @author jinhaolin
 * @since 2022-04-01
 */
@Service
public class InvoiceServiceImpl extends ServiceImpl<InvoiceMapper, Invoice> implements InvoiceService {

    @Override
    public Invoice getInvoiceByOrderId(Long orderId) {
        return baseMapper.getInvoiceByOrderId(orderId);
    }


}
